import React from 'react';
import { connect } from 'dva';
import { Icon, Result } from 'antd-mobile';
import { routerRedux } from 'dva/router';
import MyIcon from '../components/Base/MyIcon';
import styles from './RegSuccessPage.css';

class P extends React.Component {
  render() {
    return (
      <div>
        <Result
          img={<MyIcon type="success" className={styles.icon} />}
          title="注册成功"
        />
      </div>
    );
  }

  componentDidMount() {
    setTimeout(
      () => {
        this.props.dispatch(routerRedux.go(-1));
      }, 1000);
  }

}
export default connect()(P);
